package com.supplychain.financial.parent.api;

import com.supplychain.financial.parent.entity.DTO.ClearingOrderDTO;
import com.supplychain.financial.parent.common.exception.CustomException;
import com.supplychain.financial.parent.common.model.MinShengClearingResponseDTO;

import java.util.List;
import java.util.Map;

/**
 * Created by zhengchuan on 2017/5/11.
 * 订单清算服务
 */
public interface ClearingService {
    /**
     * 对账接口，
     * @param merId 要对账的商户号
     * @throws CustomException
     */
    Map<String,String> reconciliation(String merId) throws CustomException;

    /**
     * 查询目前为止，没有清算的订单
     * @return
     * @throws Exception
     */
    List<ClearingOrderDTO> selectNotClearingOrder() throws CustomException;

    void updateClearingState(Map<String, String> clearState) throws CustomException;

    void updateClearingOrderState(MinShengClearingResponseDTO minShengClearingResponseDTO)  throws CustomException;

    Map<String,Long> getClearingParams() throws CustomException;
}
